// 所有关于登录
// api与组件分离的开发方式
import request from '../utils/request'
// 获取验证码接口
export const getVeri=()=>{
  return request("/VueHandler/AdminLoginAndRegHandler?action=verification","get")
}
// 校验验证码接口
export const checkVeri=(veri)=>{
  return request("/VueHandler/AdminLoginAndRegHandler?action=checkVerification","get",{
    veri:veri
  }) 
}
// 登录接口
export const loginApi=(data)=>{
  return request("/VueHandler/AdminLoginAndRegHandler?action=login","post",data)
}
// 获取菜单
export const getMyRoute=(power)=>{
  return  request("/VueHandler/getRoute","post",{
    power:power
  })
}